com.atlassian.jira.rpc.soap.service
Class RemoteWorklogImpl

java.lang.Object
  extended by com.atlassian.jira.rpc.soap.beans.RemoteWorklog
      extended by com.atlassian.jira.rpc.soap.service.RemoteWorklogImpl

 class RemoteWorklogImpl
extends RemoteWorklog

A little PACKAGE LEVEL implementation of RemoteWorklog that allows the read only constructor to be accessed. This way RemoteWorklog does not have setters for things that cant be set!


Constructor Summary
RemoteWorklogImpl(java.lang.String id, java.lang.String author, java.lang.String updateAuthor, java.util.Date created, java.util.Date updated, java.lang.String timeSpent, long timeSpentInSeconds)
           
 
Method Summary
(package private) static RemoteWorklog copyToRemoteWorkLog(Worklog worklog, JiraDurationUtils jiraDurationUtils)
          Copies the local Worklog object into a RemoteWorklog object with the required semantics.
 
Methods inherited from class com.atlassian.jira.rpc.soap.beans.RemoteWorklog
equals, getAuthor, getComment, getCreated, getGroupLevel, getId, getRoleLevelId, getStartDate, getTimeSpent, getTimeSpentInSeconds, getUpdateAuthor, getUpdated, hashCode, setComment, setGroupLevel, setId, setRoleLevelId, setStartDate, setTimeSpent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteWorklogImpl

RemoteWorklogImpl(java.lang.String id,
                  java.lang.String author,
                  java.lang.String updateAuthor,
                  java.util.Date created,
                  java.util.Date updated,
                  java.lang.String timeSpent,
                  long timeSpentInSeconds)
Method Detail

copyToRemoteWorkLog

static RemoteWorklog copyToRemoteWorkLog(Worklog worklog,
                                         JiraDurationUtils jiraDurationUtils)
Copies the local Worklog object into a RemoteWorklog object with the required semantics.

Parameters:
worklog - the worklog to copy
jiraDurationUtils - jira duration utils object to format time; must not be null
Returns:
a RemoteWorklog that represents the Worklog to be copied; null if the original worklog was null